load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("//bazel:skia_rules.bzl", "exports_files_legacy")

package(
    default_applicable_licenses = ["//:license"],
)

licenses(["notice"])

exports_files_legacy()

go_library(
    name = "exporter_tool_lib",
    srcs = ["main.go"],
    importpath = "go.skia.org/bazel/exporter_tool",
    visibility = ["//visibility:private"],
    deps = [
        "//bazel/exporter",
        "//bazel/exporter/interfaces",
        "@org_skia_go_infra//go/common",
        "@org_skia_go_infra//go/skerr",
    ],
)

go_binary(
    name = "exporter_tool",
    embed = [":exporter_tool_lib"],
    visibility = ["//visibility:public"],
)
